package cn.liontalk.CommandPattern.pattenr2;

import cn.liontalk.CommandPattern.pattern1.Requirement;

public class TechnicalManager2 {

    private String name;

    private Command command;

    public TechnicalManager2(String name) {
        this.name = name;
    }

    public TechnicalManager2(String name, Command command) {
        this.name = name;
        this.command = command;
    }

    public void action(Requirement requirement) {
        this.command.execute(requirement);
    }

    public void setCommand(Command command) {
        this.command = command;
    }
}
